package com.mengxuegu.springboot.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import java.util.List;

/**
 * https://blog.csdn.net/weixin_43739877/article/details/139009749
 */
@TableName(value = "user_detail", autoResultMap = true)
public class UserDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private UserWork userWork;
    private List<String> addr;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private UserFeature userFeature;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private UserBehavior userBehavior;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private OtherInfo otherInfo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public UserWork getUserWork() {
        return userWork;
    }

    public void setUserWork(UserWork userWork) {
        this.userWork = userWork;
    }

    public List<String> getAddr() {
        return addr;
    }

    public void setAddr(List<String> addr) {
        this.addr = addr;
    }

    public UserFeature getUserFeature() {
        return userFeature;
    }

    public void setUserFeature(UserFeature userFeature) {
        this.userFeature = userFeature;
    }

    public UserBehavior getUserBehavior() {
        return userBehavior;
    }

    public void setUserBehavior(UserBehavior userBehavior) {
        this.userBehavior = userBehavior;
    }

    public OtherInfo getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(OtherInfo otherInfo) {
        this.otherInfo = otherInfo;
    }
}
